]> dgit.raspbian.org Git - gnome-shell.git/commit
status/network: Track devices in NMDeviceSection
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 1 Aug 2022 14:59:28 +0000 (16:59 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 10 Aug 2022 12:17:19 +0000 (12:17 +0000)
commitacda87dd2637ad4a5a560ecd0b87d1013caba277
treee0549ba1147ab498bcf1c4b7c50492db3d1b6297
parent9bb9a847baa5fc1f54b9dec1be7db10618a249ee
status/network: Track devices in NMDeviceSection

We got the indicator out of the business of tracking connections,
now it's time to do the same for devices.

Let sections track device additions and removals, and create device
items for them as it sees fit.

It also allows the sections to handle the ::activation-failed signal
by themselves, instead of passing it on from device items.

With this, the indicator is now solely responsible for global state:
Manage the top bar indicators, notify on connection failures, and run
the portal helper when NetworkManager detects a captive portal.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2407>
js/ui/status/network.js